package com.ithema.d3_util;

import java.util.Random;

public class MyUtil {

private  MyUtil(){}
    public static String createCode(int n) {
        String code ="";
        String data ="abcdefghizklmnopqrstuvwxyzABCDEFGHIZKLMNOPQRSTUVWXYZ0123456789";
        Random random = new Random();
        for (int i = 0; i < n; i++) {
            int index = random.nextInt(data.length());
            code += data.charAt(index);
        }
        return code;
    }
}
